import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function findCouponBonusRuleListByPage(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/activityCoupon/bonusRule/findCouponBonusRuleListByPage',
        method: 'post',
        params
    })
}
export function findCouponBonusRule(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/activityCoupon/bonusRule/findCouponBonusRule',
        method: 'post',
        params
    })
}
export function saveCouponBonusRule(data){
    return request({
        url: sysPath+'/hx-mart/api/v1/activityCoupon/bonusRule/saveCouponBonusRule',
        method: 'post',
        data
    })
}
export function deleteCouponBonusRule(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/activityCoupon/bonusRule/deleteCouponBonusRule',
        method: 'post',
        params
    })
}
export function updateStatus(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/activityCoupon/bonusRule/updateStatus',
        method: 'post',
        params
    })
}
export function updateActivityStatus(params){
    return request({
        url: sysPath + '/hx-mart/api/v1/activityCoupon/bonusRule/activity/status/edit',
        method: 'post',
        params
    })
}
